import {defineStore} from 'pinia'
import {reqGetReportData} from '@/api/product/mock'
import type {ReportDataModel} from '@/api/product/mock/interface/dataModel'

export const useReportDataStore = defineStore({
    id:'reportStore',
    state(){
        return{
            reportData:{} as ReportDataModel
        }
    },
    actions:{
        async getReportData(){
            const result = await reqGetReportData()
            this.reportData = result
        }
    },
    getters:{}
})